package itsmap.systematic.exam;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.app.Activity;

public class NoticeService extends Service {
	/**
	 * @see android.app.Service#onBind(Intent)
	 */
	@Override
	public IBinder onBind(Intent intent) {
		// TODO Put your code here
		return null;
	}

	/**
	 * @see android.app.Service#onCreate()
	 */
	@Override
	public void onCreate() {
		// TODO Put your code here
    	
    	Intent dialogIntent = new Intent(getBaseContext(), Restapi.class);
    	dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    	dialogIntent.putExtra("action", 90);
    	getApplication().startActivity(dialogIntent);
    }
    

	/**
	 * @see android.app.Service#onStart(Intent,int)
	 */
	@Override
	public void onStart(Intent intent, int startId) {
		// TODO Put your code here
	}
}
